/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.Creational.singletone;

/**
 *
 * @author Nashief
 */
public class Singletone {

    private static Singletone single = null; 
    
    private Singletone(){
    }
    
    public static Singletone getInstance(){
        if(single == null){
            single = new Singletone();
        }
        return single;
    }
    
    public void sayHello(){
        System.out.println("Hello");
    }
    //TODO: JUnit test
}
